#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QList>
#include <QMap>
#include "proto-xmpp-core/xmppclient.h"
#include "proto-xmpp-core/xmppmessaging.h"
#include "proto-xmpp-core/xmpproster.h"
#include "logger.h"
#include "logwindow.h"
#include "aboutwindow.h"
#include "localroster.h"
#include "contacttlistwidget.h"
#include "accountmanager.h"

#include <QDebug>


namespace Ui {
    class MainWindow;
}
/*
class JabberAccount
{
    XClient *client;
    JID *jid;
public:
    JabberAccount();
};*/

class MainWindow : public QMainWindow
{
    Q_OBJECT

    AccountManager accountManager;
    LocalRoster localRoster;
    ContacttListWidget *contactList;

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    static void logHandler(QtMsgType type, const char *msg);

    void createContactList();
private:
    Ui::MainWindow *ui;
    LogWindow *logWindow;

private slots:
    void on_testButton_clicked();
    void on_actionAbout_triggered();
    void on_actionDebug_log_triggered();
    void on_pushButton_2_clicked();
    void on_pushButton_clicked();
};

#endif // MAINWINDOW_H
